/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.close.visitor.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hopes.bizz.close.basic.vo.ClosedControlAreaMeasureVO;
import com.hopes.bizz.close.visitor.dto.ClosedVisitorApplyAuditDTO;
import com.hopes.bizz.close.visitor.dto.ClosedVisitorApplyDTO;
import com.hopes.bizz.close.visitor.dto.ClosedVisitorApplyExcelDTO;
import com.hopes.bizz.close.visitor.entity.ClosedVisitorApplyEntity;
import com.hopes.bizz.close.visitor.vo.ClosedVisitorApplyExcelVO;
import com.hopes.boss.common.service.ExcelService;

import java.util.List;

/**
 * 访客进出申请
 *
 * @author pig
 * @date 2023-10-25 13:26:19
 */
public interface ClosedVisitorApplyService extends ExcelService<ClosedVisitorApplyExcelDTO, ClosedVisitorApplyExcelVO, ClosedVisitorApplyEntity> {

    /**
     * 提交入园申请
     * @param id  id
     * @return    返回值
     */
    boolean submitById(Long id);

    /**
     * 新增并提交访客申请
     * @param closedVisitorApply  访客申请
     * @return                    返回值
     */
    boolean saveAndSubmit(ClosedVisitorApplyEntity closedVisitorApply);


    /**
     * 审核
     * @param closedVisitorApplyAuditDTO 对象
     * @return
     */
    boolean auditById(ClosedVisitorApplyAuditDTO closedVisitorApplyAuditDTO);

    /**
     * 移动端分页查询我的访客申请
     * @param page                  分页参数
     * @param closedVisitorApplyDTO 查询参数
     * @return                      结果集
     */
    IPage<ClosedVisitorApplyEntity> queryAppVisitorApplyPage(Page page, ClosedVisitorApplyDTO closedVisitorApplyDTO);

    /**
     * 移动端分页查询 企业待审批的申请
     * @param page                  分页参数
     * @param auditStatusList       状态
     * @param closedVisitorApplyDTO 参数
     * @return                      结果集
     */
    IPage<ClosedVisitorApplyEntity> queryAppVisitorAuditPage(Page page, List<Integer> auditStatusList, ClosedVisitorApplyDTO closedVisitorApplyDTO);
}
